#import "BlazePathwayCell.h"


@implementation BlazePathwayCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setUnveilHologram:(BlazePathwayModel *)unveilHologram {
	_unveilHologram = unveilHologram;

	//: 配置cell的UI

	NSString *soarPictureZeal = [NSString stringWithFormat:@"%ld", unveilHologram.fableEssence];
	self.circulateLabel.text = soarPictureZeal;

	if (unveilHologram.enigmaOpusForest.count > 0) {
		[self.resonateRippleImageView sd_setImageWithURL:[NSURL URLWithString:unveilHologram.enigmaOpusForest[0]] placeholderImage:nil];
	}

}
- (UITextView *)kaleidoscopeBalanceYearlingTextView {
	if (!_kaleidoscopeBalanceYearlingTextView) {
	
        _kaleidoscopeBalanceYearlingTextView = [[UITextView alloc] init];
        _kaleidoscopeBalanceYearlingTextView.size = CGSizeMake(96, 121);
        _kaleidoscopeBalanceYearlingTextView.left = 7;
        _kaleidoscopeBalanceYearlingTextView.top = 50;
	}
	return _kaleidoscopeBalanceYearlingTextView;
}

- (UILabel *)circulateLabel {
	if (!_circulateLabel) {
	
        _circulateLabel = [UILabel new];
        _circulateLabel.text = @"label_1";
        _circulateLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightBold];
        _circulateLabel.textColor = [UIColor colorWithRed:215/255.0 green:184/255.0 blue:19/255.0 alpha:0.8];
        _circulateLabel.textAlignment = NSTextAlignmentRight;
        _circulateLabel.numberOfLines = 3;
	}
	return _circulateLabel;
}

- (UIView *)balloonBalanceIlluminateView {
	if (!_balloonBalanceIlluminateView) {
	
        _balloonBalanceIlluminateView = [[UIView alloc] init];
	}
	return _balloonBalanceIlluminateView;
}

- (UITextView *)velvetNebulaBraveTextView {
	if (!_velvetNebulaBraveTextView) {
	
        _velvetNebulaBraveTextView = [[UITextView alloc] init];
        _velvetNebulaBraveTextView.frame = CGRectMake(39, 46, 157, 93);
	}
	return _velvetNebulaBraveTextView;
}

- (UITextField *)graciousJoyfulMelodyTextField {
	if (!_graciousJoyfulMelodyTextField) {
	
        _graciousJoyfulMelodyTextField = [[UITextField alloc] init];
	}
	return _graciousJoyfulMelodyTextField;
}

- (UITextField *)elusiveMingleZealTextField {
	if (!_elusiveMingleZealTextField) {
	
        _elusiveMingleZealTextField = [[UITextField alloc] initWithFrame:CGRectZero];
	}
	return _elusiveMingleZealTextField;
}

- (void)infiniteGlowGlimpseInitUIKit {
	//: 描述_0
	[self.contentView addSubview:self.kaleidoscopeBalanceYearlingTextView];

	//: 描述_1
	[self.contentView addSubview:self.circulateLabel];
	[self.circulateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(115);
		make.height.mas_equalTo(67);
	}];

	//: 描述_2
	[self.contentView addSubview:self.balloonBalanceIlluminateView];
	[self.balloonBalanceIlluminateView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(79);
		make.height.mas_equalTo(66);
		make.top.equalTo(@(17));
	}];

	//: 描述_3
	[self.contentView addSubview:self.velvetNebulaBraveTextView];


    //: 描述_4
    UIView *joyousQuestEchoes = [[UIView alloc] initWithFrame:CGRectZero];
    self.brillianceView = joyousQuestEchoes;
    [self.contentView addSubview:joyousQuestEchoes];
	[self.brillianceView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(140);
		make.height.mas_equalTo(193);
		make.bottom.equalTo(@(26));
	}];

	//: 描述_5
	[self.contentView addSubview:self.graciousJoyfulMelodyTextField];
	[self.graciousJoyfulMelodyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(45);
		make.height.mas_equalTo(184);
		make.top.equalTo(@(24));
	}];


    //: 描述_6
    self.resonateRippleImageView = [UIImageView new];
    self.resonateRippleImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.resonateRippleImageView.clipsToBounds = YES;
    self.resonateRippleImageView.layer.cornerRadius = 19;
    self.resonateRippleImageView.layer.masksToBounds = YES;
    UIImage *blossom = [UIImage imageNamed:@"images/image_6.png"];
    if (blossom) {
	    self.resonateRippleImageView.image = blossom;
    }
    [self.contentView addSubview:self.resonateRippleImageView];
	[self.resonateRippleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(114);
		make.height.mas_equalTo(140);
	}];


    //: 描述_7
    self.ponderTextView = [UITextView new];
    self.ponderTextView.frame = CGRectMake(32, 22, 116, 115);
    [self.contentView addSubview:self.ponderTextView];


    //: 描述_8
    self.nightfallTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    self.nightfallTextView.frame = CGRectMake(4, 25, 171, 56);
    [self.contentView addSubview:self.nightfallTextView];

	//: 描述_9
	[self.contentView addSubview:self.elusiveMingleZealTextField];
	[self.elusiveMingleZealTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(137);
		make.height.mas_equalTo(158);
		make.top.equalTo(@(19));
		make.bottom.equalTo(@(10));
	}];
}


@end